package com.hn.zhijian.system.mapper;

import com.hn.zhijian.system.entity.SysResource;
import com.hn.zhijian.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author carl chen
 * @since 2019-11-17
 */
public interface ResourceMapper extends BaseMapper<SysResource> {

     List<SysResource> findResourceByRoleCode(@Param("roleCode")String roleCode);

     List<SysResource> findResource(@Param("parentId")Long parentId, @Param("type")String type);

     List<SysResource> findResourceByUsernameAndType(@Param("username")String username, @Param("type")String type);
}
